<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
  String path = request.getContextPath();
  String basePath = request.getScheme() + "://"
      + request.getServerName() + ":" + request.getServerPort()
      + path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
  <base href="<%=basePath%>"/>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  <title>统计</title>
  <script src="js/jquery-1.11.2.min.js"></script>
  <script src="<%=basePath%>js/d3.js"></script>
<style type="text/css">
	#center{width:800px;margin-top:200px;height:800px;float:left;;margin-left:100px}
	#left{width:180px;margin-top:400px;height:800px;float:left;margin-left:300px}
</style>  
</head>
<body style="background: #2E3641;">

<input type="button" id="p1" value="跳转">
<input type="button" id="p2" value="重置"></button>

<script type="text/javascript">
$(function(){
	
	$("#p1").click(function() {
		
		 $.ajax({
            type: "POST",
            url: "serverController/serverControl",
            data: {
                type: 1
            },
            success: function() {
                console.log("ok");
            }
        });

    })
    
    $("#p2").click(function() {
			
		 $.ajax({
             type: "POST",
             url: "serverController/serverControl",
             data: {
                 type: 0
             },
             success: function() {
                 console.log("ok");
             }
         });

    })
	
	
	
	
})


</script>
</body>
</html>